package libs.yzx.zaza;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import libs.yzx.zaza.zaza2.ILoginView;
import libs.yzx.zaza.zaza2.LoginPresenter;

/**
 * Created by Administrator on 2016/7/21.
 */
public class MVP_Activity extends AppCompatActivity {


    private LoginPresenter p;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        p = new LoginPresenter(new ILoginView() {
            @Override
            public void onStartLogin() {

            }

            @Override
            public void onLoginSuccess(String account) {

            }

            @Override
            public void onLoginFailed(String reson) {

            }
        });

        p.doLogin("fuck", "shit");
    }
}
